<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Web Art Blog</title>
<link rel="stylesheet" type="text/css" href='./res/css/style.css' />
<link href="sample.css" rel="stylesheet" type="text/css" />
<link rel="icon" type="image/png"  href="./res/css/images/logo.png" />
<link rel="alternate" type="application/rss+xml" title="Webartblog RSS" href="http://www.webartblog.com/admin/rss.xml">
<script type="text/javascript" src="./res/js/jquery.min.js"></script>
<script type="text/javascript" src="./tinymce/jscripts/tiny_mce/tiny_mce.js"><!--mce:0--></script>
<script type="text/javascript">
// Google analytics
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-23580789-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

// Fin Google Analytics
/*
tinyMCE.init({
theme : "advanced",
mode : "exact",
elements: "contenu"

}); */
</script>
<script type="text/javascript" src="./res/js/jquery.lavalamp.min.js"></script>
<script type="text/javascript" src="./res/js/jquery.easing.min.js"></script>
<script type="text/javascript" src="./ckeditor.js"></script>
<script src="sample.js" type="text/javascript"></script>
<script src="./res/js/script.js" type="text/javascript"></script>

<script type="text/javascript">
		$(function() {
				$("#menu").lavaLamp({
						fx: "backout",
						speed: 600
				});
		});
</script>
</head>
<body>
<div id="global">
	<div id="global_center">
    <div id="header">
    </div>
    <div id="menu">
      <div>
				<ul id="menuhorizontal">
        	<li id="menuhorizontal"><a href="index.php">Accueil</a></li>
        	<?php if(isset( $_SESSION['roleUser']) && 1 ==$_SESSION['roleUser'])echo '<li id="menu2"><a href="./admin">Gestion des articles</a></li><li id="menu3"><a href="./admin/index.php?page=users.php">Gestion des utilisateurs</a></li><li id="menu4"><a href="./admin/index.php?page=list_categories.php">Gestion des categories</a></li>';?>
    		</ul>
      </div>
      <form action="?page=search.php" name="search" method="post">
      <!--  <div id="search">
          <p style="margin-top:13px;">
            &nbsp;&nbsp;&nbsp;
              <input type="text" name="search" style="width: 160px; height:27px; padding:0px; border:0px; vertical-align:top;" />
              <input type="image" name="rechercher"  style="width:27px; height:28px; border:0; padding:0 0 0 0; cursor:pointer; " src="./res/css/images/spacer.gif" />
          </p>
        </div> -->
			</form>
    </div>
    	<div id="connexion">
      	<?php
        if(isset($_SESSION['idUser']))
     			echo "<a href='?page=profil.php'>Mon compte(".$_SESSION["loginUser"].")</a> &nbsp;&nbsp;&nbsp;<a href='?page=logout.php'>D&eacute;connexion</a>";
		else
     			echo  '&nbsp;&nbsp;&nbsp;<a href="?page=login.php">Connexion</a>';
      	?>
      </div>
		</div>
    <div id="body">
      <div id="contenu">
        <div style="width: 180px; float: left;">
          <?php include("list_categories.php"); ?>
        </div>
        <div id="all_bloc">
				<?php 
				$page = isset($_GET['page'])?'../'.$_GET['page']:null;
				if (file_exists($page))
				{
					include $page;
				}
				// TEMPORAIRE, LE TEMPS DE L'INTEGRATION
				else if(isset($_GET['page']) && file_exists($_GET['page']))
				{
					include $_GET['page'];
				}
				else
				{
					include 'list_articles.php';
				}
				?>
        </div>
      </div>
		</div>	  
    <div class="fb">
      <div id="fb-root">
      </div>
      <script src="http://connect.facebook.net/fr_FR/all.js#xfbml=1"></script>
      <fb:like-box href="http://www.facebook.com/webartblog" width="1002" height="245" show_faces="true" stream="false" header="false" max_rows="2"></fb:like-box>
    </div>
    
    <div id="footer">
      <!--<div id="bottom_left">
      </div>
      <div id="bottom_center">
      </div>
      <div id="bottom_right">
      </div> -->
    </div>
    <div id="copyright">
    Copyright 2010
    </div>
  </div>
</div>
</body>
</html>